package com.qj.travel.db.dao;

import com.qj.travel.db.model.TransInfoModel;

import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by Admin on 2016/10/1.
 */
public interface TransInfoDao {
    List<TransInfoModel> getTransInfoList();
    List<TransInfoModel> getTransBySort(@Param("videoClass") String videoClass,@Param("startRow") int startRow,@Param("pageSize") int pageSize);
    List<TransInfoModel> getTransPublished(@Param("startRow") int startRow,@Param("pageSize") int pageSize);
    List<TransInfoModel> getTransPublishedBySort(@Param("videoClass") String videoClass,@Param("startRow") int startRow,@Param("pageSize") int pageSize);
    TransInfoModel getTransInfo(int videoId);
    int insertTransInfo(TransInfoModel transInfoModel);
    List<TransInfoModel> getTransInfoListByPage(@Param("startRow") int startRow, @Param("pageSize") int pageSize);
    int deleteTrans(int transId);
    List<TransInfoModel> getTransNotPublished(@Param("startRow") int startRow,@Param("pageSize") int pageSize);
    int updateLock(int videoId);
    int updatePublish(int videoId);
    int cancelPublish(int videoId);
    int updateNotPass(int videoId);
    int updateClass(@Param("videoId") int videoId,@Param("videoClass") String videoClass);
    List<TransInfoModel> getTransByUser(String userId);
    List<TransInfoModel> getTransByUserPublished(String userId);
    List<TransInfoModel> getTransByUserNotPublished(String userId);
    List<TransInfoModel> getTransByUserNotPass(String userId);
    List<TransInfoModel> getTransNotPass();
}
